package com.gitee.huxing.course;

import com.gitee.huxing.mybatis.core.annotation.MapperScan;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;

import java.time.LocalDateTime;

/**
 * @Description: 应用服务启动
 * @ProjectName: JavaCourse
 * @Package: com.gitee.huxing.course
 * @ClassName: JavaCourseApplication
 * @Author: huxing
 * @DateTime: 2021-09-15 上午10:08
 */
@Slf4j
@MapperScan(basePackages = {"com.gitee.huxing.course.domain.dao"})
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class JavaCourseApplication implements CommandLineRunner {

    public static void main(String[] args) {
        SpringApplication.run(JavaCourseApplication.class, args);
    }

    @Override
    public void run(String... args) throws Exception {
        log.info("系统应用服务启动: {}", LocalDateTime.now());
    }
}
